Well-Typed Islands Parse Faster
نویسندگان
چکیده
This paper addresses the problem of specifying and parsing the syntax of domain-specific languages (DSLs) in a modular, userfriendly way. That is, we want to enable the design of composable DSLs that combine the natural syntax of external DSLs with the easy implementation of internal DSLs. The challenge in parsing composable DSLs is that the composition of several (individually unambiguous) languages is likely to contain ambiguities. In this paper, we present the design of a system that uses a type-oriented variant of island parsing to efficiently parse the syntax of composable DSLs. In particular, we show how type-oriented island parsing is constant time with respect to the number of DSLs imported. We also show how to use our tool to implement DSLs on top of a host language such as Typed Racket.
منابع مشابه
Text Simplification using Typed Dependencies: A Comparision of the Robustness of Different Generation Strategies
We present a framework for text simplification based on applying transformation rules to a typed dependency representation produced by the Stanford parser. We test two approaches to regeneration from typed dependencies: (a) gen-light, where the transformed dependency graphs are linearised using the word order and morphology of the original sentence, with any changes coded into the transformatio...
متن کاملKilim: Isolation-Typed Actors for Java
This paper describes Kilim, a framework that employs a combination of techniques to help create robust, massively concurrent systems in mainstream languages such as Java: (i) ultra-lightweight, cooperatively-scheduled threads (actors), (ii) a message-passing framework (no shared memory, no locks) and (iii) isolation-aware messaging. Isolation is achieved by controlling the shape and ownership o...
متن کاملA Dynamic Confusion Score for Dependency Arc Labels
In this paper we propose an approach to dynamically compute a confusion score for dependency arc labels, in typed dependency parsing framework. This score accompanies the parsed output and aims to administer an informed account of parse correctness, detailed down to each edge of the parse. The methodology explores the confusion encountered by the oracle of a data driven parser, in predicting an...
متن کاملBbn Technical Report #7866: Strongly Typed Genetic Programming
Genetic programming is a powerful method for automatically generating computer programs via the process of natural selection Koza 92]. However, it has the limitation known as \closure", i.e. that all the variables, constants, arguments for functions, and values returned from functions must be of the same data type. To correct this deeciency, we introduce a variation of genetic programming calle...
متن کاملMemory Management for Unification-based Processing of Typed Feature Structures
We consider two alternatives for memory management in typed-featurestructure-based parsers by identifying structural properties of grammar signatures that may be of some predictive value in determining the consequences of those alternatives. We define these properties, summarize the results of a number of experiments on artificially constructed signatures with respect to the relative rank of th...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012